package com.company.sendemo.basics.zzInterview.select;

public class One {
    public static void main(String[] args) {
        try {
            method(0);
        } catch (Exception e) {
            System.out.println("exceptionininmain");
        }
        System.out.println("finished");
        // 0/10 可以正常执行 没有抛出异常 所以 结果为 finally finished
    }

    public static int method(int i) throws Exception {
        try {
            return i / 10;
        } catch (Exception e) {
            throw new Exception("Exception in a aMothod");
        } finally {
            System.out.println("finally");
        }
    }
}
